<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>相对定位</title>
</head>
<style type="text/css">
	.div1{
		width: 600px;
		height: 600px;
		border: 1px solid black;
	}

	.div2{
		width: 100px;
		height: 40px;
		background-color: green;
		float: left;
		margin: 10px;
	}
	
	.te1{
		left: 50px;
		top:50px;
		/*相对定位，相对于原来的位置，并且原来所占的位置还会被保护起来*/
		position: relative;
	}
</style>
<body>
	<div class="div1">
		<div class="div2">内容1</div>
		<div class="div2 te1">内容2</div>                                                                                                                                                                      
		<div class="div2">内容3</div>
		<div class="div2">内容4</div>
	</div>
</body>
</html>